﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>短信管理</title>
    <link href="~/plugins/layui/css/layui.css" rel="stylesheet" />
</head>
<body style="margin-left:10px;margin-top:10px;">
    <div id="ss" class="layui-form-item">
        <div class="layui-inline">
            <div class="layui-input-inline" style="width: 30px;">
                <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe615;</i>
            </div>
            <div class="layui-input-inline" style="width: 150px;">
                <input type="text" placeholder="手机号" name="account" class="layui-input" />
            </div>
            <div class="layui-input-inline" style="width: 150px;">
                <input type="text" placeholder="开始时间" name="stime" autocomplete="off" lay-verify="date" class="layui-input" onclick="layui.laydate({ elem: this, istime: true, festival: true, format: 'YYYY-MM-DD hh:mm:ss' })" />
            </div>
            <div class="layui-form-mid">-</div>
            <div class="layui-input-inline" style="width: 150px;">
                <input type="text" placeholder="结束时间" name="etime" autocomplete="off" lay-verify="date" class="layui-input" onclick="layui.laydate({ elem: this, istime: true, festival: true, format: 'YYYY-MM-DD hh:mm:ss' })" />
            </div>
            <div class="layui-input-inline">
                <button onclick="getlist(1);" class="layui-btn">给偶搜</button>
            </div>
        </div>
    </div>
    <div class="layui-form">
        <table class="layui-table">
            <thead>
                <tr>
                    <th>手机号</th>
                    <th>短信内容</th>
                    <th>短信状态</th>
                    <th>短信类型</th>
                    <th>条数</th>
                    <th>入库时间</th>
                </tr>
            </thead>
            <tbody id="tbody">
                <script id="tpl" type="text/html">
                    {{each list as item index}}
                    <tr>
                        <td>{{item.shouji}}</td>
                        <td>{{item.msg}}</td>
                        <td>{{item.rzt}}</td>
                        <td>
                            {{if item.lx=="1"}}
                            验证码
                            {{else}}
                            系统短信
                            {{/if}}
                        </td>
                        <td>{{item.num}}</td>
                        <td>{{item.addtime}}</td>
                    </tr>
                    {{/each}}
                </script>
            </tbody>
        </table>
    </div>
    <div id="page"></div>
    共 <label id="pages">0</label> 页, <label id="count">0</label> 条数据
    <label id="Controllers" class="layui-hide">duanxin</label>
    <script src="~/js/jquery.js"></script>
    <script src="~/plugins/layui/layui.js"></script>
    <script src="~/js/template-web.js"></script>
    <script src="~/js/list.js"></script>
</body>
</html>
